package com.qf;

import java.util.function.Predicate;

public class PredicateTest {
    public static void main(String[] args) {
        Predicate<String> predicate = str-> str.length()>5;


        boolean flag = predicate.test("abcdef");
        System.out.println(flag);
    }
}
